#ifndef CUSERSERVICE_H
#define CUSERSERVICE_H

#include <QObject>
#include "protocol.h"
#include <memory>
#include <QJsonArray>
#include <QJsonObject>
#include <QJsonDocument>
class CUserService : public QObject
{
    Q_OBJECT
public:
    explicit CUserService(QObject *parent = nullptr);

    void RecvRegisterRespond(std::shared_ptr<PDU> recvBag);

    void RecvLoginRespond(std::shared_ptr<PDU> recvBag);
signals:
    void EmitRegisterSuccess(QString);
    void EmitRegisterFail(QString);

    void EmitLoginFail(QString);
    void EmitLoginSuccess(QString);
};

#endif // CUSERSERVICE_H
